package com.deng.eventflow.core.exception;

import com.deng.eventflow.core.Processor;

public class PushableException extends RuntimeException {
    /**
     * Dummy UID
     */
    private static final long serialVersionUID = 1L;

    /**
     * The processor to which the exception is associated (if any)
     */
    protected final transient Processor m_processor;

    public PushableException(Throwable t)
    {
        this(t, null);
    }

    public PushableException(String message)
    {
        this(message, null);
    }

    public PushableException(String message, Processor p)
    {
        super(message);
        m_processor = p;
    }

    public PushableException(Throwable t, Processor p)
    {
        super(t);
        m_processor = p;
    }
}
